package com.example.activiti.modle;

import java.io.Serializable;

/**
 * @Author: 程荣凯
 * @Date: 2018/9/25 18:17
 */
public class JsonResult implements Serializable{
    private String success;
    private Object data;
    private String errorCode;
    private String errorMsg;

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public JsonResult(String success, Object data) {
        this.success = success;
        this.data = data;
    }

    public JsonResult(String success, Object data, String errorCode, String errorMsg) {
        this.success = success;
        this.data = data;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
